// pages/me/me.js
Page({

  data: {
username:"赖生根",
sex:"男",
age:"21",
class:"移动一班",
id:"123",
ischecked:"false",
num:1,
x:100,
y:200,
numArray:[182,1104,113,316,318],
nodes:[{
name:'div',
attrs:{
  style:'color:red;font-size:48px'
},
children:[{
  type:'text',
  text:'湖南网络'
}]
}],
objectArray:[{
name:"赖生根",
sex:"男",

},
{
  name:"张三",
  sex:"女"
},{
name:"王五",
sex:"男"
}]
  },
  goNewPage:function(e){
    var username =e.currentTarget.dataset.username;
    console.log(username)
    var password =e.currentTarget.dataset.password;
    console.log(password)
    var id =e.currentTarget.dataset.id;
    console.log(id)
    console.log(e)
    wx.navigateTo({
      // url: '/pages/login/login',
      url: '../login/login?id='+id+"&username="+username+"&password="+password,
      success: (result) => {},
      fail: (res) => {},
      complete: (res) => {},
    })

  },
  
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
console.log("onLoad")
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {
    console.log("onReady")
  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
    console.log("onShow")
  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {
    console.log("onLoad")
  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {
    console.log("onUnload")
  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {
    console.log("onPullDownRefresh")
  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {
    console.log("onReachBottom")
  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {
    console.log("onShareAppMessage")
  }
})